import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

///
/// android_webview
///
/// Created by cjl at 2025/7/10 00:06

const String viewType = "cn.cjlmonster.hyouka/webview";

class AndroidWebView extends StatelessWidget {
  const AndroidWebView({super.key, required this.url});

  final String url;

  @override
  Widget build(BuildContext context) {
    return AndroidView(
      viewType: viewType,
      creationParams: {
        "url": url,
      },
      creationParamsCodec: const StandardMessageCodec(),
    );
  }
}
